#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Create by zhang
# Create on 2022/6/28 14:35
class CurrencyType:
    def __init__(self, name: str, title: str, value: int):
        self.name: str = name
        self.title: str = title
        self.value: int = value


class CurrencyTypeEnum:
    RMB = CurrencyType(name="rmb", title="人民币", value=0)
    DOLLAR = CurrencyType(name="dollar", title="美元", value=1)

    @classmethod
    def get_titles(cls):
        return [ins.title for ins in cls.get_instances()]

    @classmethod
    def get_instances(cls):
        return [cls.RMB, cls.DOLLAR]